import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import {ClientsModule,Transport} from "@nestjs/microservices"
@Module({
  imports: [
    ClientsModule.register([
      {
        name:'CALC_SERVICE',
        transport:Transport.TCP,
        options:{
          port:8888
        }
      }
    ]),
    ClientsModule.register([
      {
        name:'LOG_SERVICE',
        transport:Transport.TCP,
        options:{
            port:9999
        }
      }
    ])
  ],
  controllers: [AppController],
  providers: [],
})
export class AppModule {}
